/**
 * Copyright (c) 2018-2028, Chill Zhuang 庄骞 (smallchill@163.com).
 * <p>
 * Licensed under the GNU LESSER GENERAL public  LICENSE 3.0;
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.gnu.org/licenses/lgpl.html
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.ruoyi.log.domain;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * 分页工具
 *
 * @author Chill
 */
@Data
@Accessors(chain = true)
public class MangoQuery implements Serializable {

    /**
     * 当前页
     */
    private Integer current;

    /**
     * 每页的数量
     */
    private Integer size;

    /**
     * 排序的字段名
     */
    private String ascs;

    /**
     * 总数
     */
    private long total;

    /**
     * 排序方式
     */
    private String descs;

    /**
     * 查询map
     */
    private Map map;

    /**
     * 结果
     */
    private List<Map> records;

	MangoQuery(){

	}

	public MangoQuery(Map map, int size, int current){
		this.map = map;
		this.size = size;
		this.current = current;
	}

}
